//
//  Conts.swift
//  show
//
//  Created by 李威 on 2022/3/10.
//

import Foundation
struct Conts {
    func define_demo() {//条件编译
    #if os(macOS) || os(iOS)
        print("laptop")
    #elseif arch(x86_64) || arch(arm64)
        print("simulator")
        #elseif swift(<5) && swift(>=3)
        print("swift版本")
        #elseif targetEnvironment(simulator)
        print("模拟器")
        #endif
        
        #if canImport(Foundation)
        print("可以导入foundation")
        #endif
    }
}
